package com.lobstar.xrpc.context;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

import com.lobstar.xrpc.client.main.MainClient;

public class ClientContainer {
	private static Map<String, MainClient> clientMap = new ConcurrentHashMap<String, MainClient>();

	public static void addClient(String id,MainClient client) {
		clientMap.put(id, client);
	}
	public static boolean exist(String id) {
		return clientMap.containsKey(id);
	}
	public static void removeClient(String id) {
		clientMap.remove(id);
	}
	public static MainClient getClient(String id) {
		return clientMap.get(id);
	}
}
